package com.xianyun.book.extension;

import com.alibaba.cola.extension.Extension;
import com.xianyun.book.common.constant.BizCode;
import com.xianyun.book.common.util.UUIDUtils;
import com.xianyun.book.domain.user.SystemUser;
import com.xianyun.book.dto.UserRegisterCmd;
import com.xianyun.book.extensionpoint.AccountInitExtPt;
import lombok.extern.slf4j.Slf4j;

/**
 * @author macos-zyj
 */
@Slf4j
@Extension(bizId = BizCode.BIZ_ID_BOOK,useCase = BizCode.USE_CAUSE_REGISTER,scenario = BizCode.USER_SCENARIO)
public class UserAccountInitExp implements AccountInitExtPt {

    @Override
    public SystemUser initAccount(UserRegisterCmd registerCmd) {
        log.info("业务线:{},功能模块:{},行为:{}",BizCode.BIZ_ID_BOOK,"用户","注册-账户初始化");
        String uuid = UUIDUtils.getAccountIdByUUId();
        return null;
    }
}
